//
//  ShareMenager.h
//  WorldOfFacts_V2
//
//  Created by Demjanko Denis on 14.12.12.
//  Copyright (c) 2012 it-dimension. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Vkontakte.h"
#import "Facebook.h"

typedef void (^SHResult)(BOOL isAllOK);

@interface ShareMenager : NSObject <VkontakteDelegate,FBSessionDelegate,FBRequestDelegate>{
    Vkontakte *vkontakte;
    Facebook *facebook;
    UIViewController *parentVC;
    NSMutableDictionary *fact;
}

+(ShareMenager*)sharedManeger;

@property (copy) SHResult completionHandler;

-(void)postVKFact:(NSMutableDictionary*)_fact fromViewController:(UIViewController*)_parentVC withCompletionHandler:(SHResult)handler;
-(void)postFBFact:(NSMutableDictionary*)_fact fromViewController:(UIViewController*)_parentVC withCompletionHandler:(SHResult)handler;

@end
